package Map;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class City {
    public static void main(String[] args) {
        Map<String,Cityinfo> map =new HashMap<>();
        map.put("河南省",new Cityinfo("郑州","开封","商丘","鹤壁","大理"));
        map.put("江苏省",new Cityinfo("郑州","开封","商丘","鹤壁","大理"));
        map.put("河北省",new Cityinfo("郑州","开封","商丘","鹤壁","大理"));
        Scanner input =new Scanner(System.in);
        System.out.println("请输入你要查询的省会名字：");
        String city = input.next();
        System.out.println(map.get(city));
    }
}
